package com.gjy.scheduling.monitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gjy.scheduling.monitor.entity.CfgMonitorInfo;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.cursor.Cursor;
import org.apache.ibatis.mapping.ResultSetType;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-07-12 10:29:25
 */
public interface CfgMonitorInfoMapper extends BaseMapper<CfgMonitorInfo> {

    @Select("SELECT * FROM CFG_MONITOR_INFO")
    @Options(resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = 5000)
    Cursor<CfgMonitorInfo> selectCfgMonitorInfoWithCursor();

}
